package com.tmall.tmall.utils;

public class ThreadLocalUtils {
    public static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void setUid(Integer id) {
        threadLocal.set(id);
    }

    public static Integer getUid() {
        return threadLocal.get();
    }
}
